package com.shdaow.shadow_lib_test;

import com.shadow.shadow_lib.widget.BitmapCannotBeNullException;
import com.shadow.shadow_lib.widget.BitmapImageView;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Environment;

public class TestBitmapImageView extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		BitmapImageView bitmapImageView = new BitmapImageView(this);
		setContentView(bitmapImageView);
		Bitmap b = BitmapFactory.decodeFile(Environment
				.getExternalStorageDirectory().getAbsolutePath()
				+ "/UULUX/data/picture/a.png");
		try {
			bitmapImageView.setmBitmap(b);
		} catch (BitmapCannotBeNullException e) {
			e.printStackTrace();
		}
	}
}
